<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="author" content="菜鸟开发小组" />
		<meta name="keywords" content="Hyper IT,hyper it,it,hyper,IT 博客,博客,交流平台,IT交流网站,IT服务网站,菜鸟开发小组"/>
		<meta name="description" content="由菜鸟才发小组开发的一个苛求质量的高大上的IT服务网站，为IT技术圈内的大牛与小白提供了一个良好的技术交流平台。"/>
		<meta name="robots" content="all"/>
		<title>Hyper IT|订单中心</title>
		 
		<link rel="icon" href="../../img/logo2.ico" type="image/x-icon"/>
		<link rel="stylesheet" type="text/css" href="../../css/common.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/order.css"/>
		
	</head>
	<body>
		<header>
			<a href="../index.html" title="一个苛求质量的IT服务网站" id="logo"><img src="../../img/logo.jpg" alt="logo"/></a>
			<nav>
				<ul class="link-nav">
					<li><a href="../blog/blogs.html"><i class="m-icon icon-blog"></i><span>博客园</span></a></li>
					<li><a href="../article/articles.html"><i class="m-icon icon-article"></i><span>博文阁</span></a></li>
					<li><a href="../aq/aqs.html"><i class="m-icon icon-aq"></i><span>问答楼</span></a></li>
					<li><a href="../note/notes.html"><i class="m-icon icon-note"></i><span>随笔本</span></a></li>
					<li><a href="../tag/tags.html"><i class="m-icon icon-boll"></i><span>标签库</span></a></li>
				</ul>
			</nav>
					
			<ul class="user-bar">
				<li class="help-search"><a href="../others/help.html">帮助</a></li>
				<li id="userbox"><a href="../user/login.html"><span>Go</span></a></li>
			</ul>
		</header>
		<div class="main">
			<div class="wrap">
				<div class="order">我的订单</div>
				<div class="order_list">
					<ul id="orderList">
					</ul>
				</div>
			</div>
			
		</div>
		<footer >
			<div class="wrap" >
				<p>Copyright &copy; 2017-5-5 Hyper IT of 菜鸟开发小组 All Rights Reserved.</p>
			</div>
		</footer>
		
		<script type="text/javascript" src="../../js/jquery-3.1.1.min.js"></script>
		<script type="text/javascript" src="../../js/common.js"></script>
		<script type="text/javascript">
			$(document).ready(function(){
				initOrderlist();
			});
			function showOrderlist(orderList){
				for(var i=0;i<orderList.length;i++){
					$("#orderList").append('<li><div class="hr"></div><div class="order_info"><img src="../../'+orderList[i].path+'" width="90" height="90" /><span class="span1">'+orderList[i].name+'</span><span class="span2">'+orderList[i].cost+'H币</span><span class="span3">订单时间：'+orderList[i].createtime.split(".")[0]+'</span></div></li>')
				}
			}
			
			
			
			function initOrderlist(){
				var user= JSON.parse(getCookie("user"));
				var user_id = user.id;
				var url = "/HyperIT/goods/findPersonOrder";
				var parm = "userdetail_id="+user_id;
				$.get(url,parm,function(data){
					if(data.serviceResult){
						var orderList = data.resultParm.goodsorder;
						showOrderlist(orderList);
					}
					else{
						alert(data.resultInfo);
					}
				});
			}
			
			
			
			
		</script>
	</body>
</html>
